<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: common-head"></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: common-header"></header>
    <!-- 主体start -->
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE"
                          data--w-o-w_-i-n-d-e-x="43">系统管理</font>
                </h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <div class="card-title">系统管理 >> 薪酬项目管理</div>
                                <div style="float: right;">
                                    <a>
                                        <button id="add" class="btn btn-default">新增</button>
                                    </a>
                                    <a>
                                        <button id="delete" class="btn btn-default">删除</button>
                                    </a>
                                    <a>
                                        <button id="update" class="btn btn-default">保存</button>
                                    </a>
                                    <a th:href="@{/sys/salary/list}">
                                        <button class="btn btn-default">刷新</button>
                                    </a>
                                </div>
                            </div>
                            <div class="card-body">
                                <div class="card-sub">
                                    <div id="showList" class="pageListShow">
                                        <div th:if="${pageInfo != null && pageInfo.list.size() != 0}">
                                            <form action='/sys/salary/addSave' id='addSave'  method='post'>
                                                <table class="table table-striped mt-3" id="table">
                                                    <thead>
                                                    <tr>
                                                        <th>选择</th>
                                                        <th>薪酬编码</th>
                                                        <th>薪酬名称</th>
                                                        <th>描述 </th>
                                                        <th>是否启用</th>
                                                    </tr>
                                                    </thead>
                                                    <tbody id="tbody" >
                                                    <tr th:each="salary:${pageInfo.list}" th:onclick="'javascript:radio('+${salary.id}+');'">
                                                        <input class="list" th:value="${salary.id}" type="hidden">
                                                        <td><input style="position:static;" name="sid" type="radio" th:attr="id=${salary.id}"/></td>
                                                        <td th:text="${salary.code}"></td>
                                                        <td><input th:attr="id=${salaryStat.index}" class="name" required='required'  type="text" th:value="${salary.name}"/></td>
                                                        <td><input th:attr="id=${salaryStat.index}" class="describe" type="text" th:value="${salary.describe}"/></td>
                                                        <td >
                                                            <input class="isStart" th:attr="id=${salaryStat.index}" style="position:static;" type="checkbox" value="1"  th:if="${salary.is_Start} eq 1" checked/>
                                                            <input class="isStart" th:attr="id=${salaryStat.index}" style="position:static;" type="checkbox" value="0" th:if="${salary.is_Start} eq 0"/>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </form>
                                        </div>
                                        <div th:if="${pageInfo == null || pageInfo.list.size() == 0}">
                                            暂时没有记录.....
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<footer th:replace="common/comm :: common-footer"></footer>
<script th:src="@{/js_hr/salary/salaryPro.js}"></script>
</html>
</table>